﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using PotatoSoft.Representation3D;
using PotatoSoft.CustomControl;

namespace PotatoSoft.Representation3D.Test
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        private Oct3DView oct3dView;

        public MainWindow()
        {
            InitializeComponent();

            oct3dView = new Oct3DView();
        }

        private void XnaControl_Render(object sender, RenderRoutedEventArgs e)
        {
            oct3dView.OnRender(e.GraphicsDevice);
        }

        private void XnaControl_DeviceCreated(object sender, DeviceCreatedRoutedEventArgs e)
        {
            oct3dView.OnDeviceCreated(e.GraphicsDevice);
        }
    }
}
